package abcSnake;

import java.awt.Color;
import java.awt.Image;



public class Egg {
	

	private int x=0;
	private int y=0;
	boolean alive=false;
	Color color=Color.yellow;
	Image img=null;
	
	
	public void changeColor(){
		if(color==Color.yellow)
			color=Color.green;
		else color=Color.yellow;
	}
	public void appear(){
	
		this.x=(int)(Math.random()*40);
		this.y=(int)(Math.random()*30);
		
	}
	public int getX(){
		return x;
	}
	public int getY(){
		return y;
	}
}
